<template>
	<view class="box">
		<image v-if="host" :src="`${host}${url}`"  mode="aspectFill"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '/uploads/vin/vin.png'
			}
		},
		computed: {
			host() {
				return this.$baseHost.qiniuHost
			}
		},
		methods: {
			// handlePreview() {
			// 	let url = `${this.host}${this.url}`
			// 	uni.previewImage({
			// 		current: url,
			// 		urls: [url]
			// 	})
			// }
		}
	}
</script>

<style lang="less">
	.box {
		box-sizing: border-box;
		width: 100%;
		padding: 30rpx;

		image {
			width: 100%;
			height: 100vh;
		}
	}
</style>
